package com.mode.builder.pattern;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 14:06
 */
public class BuildGreateWall extends Builder{

    private GreatWall greatWall;
    public BuildGreateWall() {
        greatWall = new GreatWall();
    }

    @Override
    void brick() {
        greatWall.setBrick("褐色砖");
    }

    @Override
    void worker() {
        greatWall.setWorker("100万壮士");
    }

    @Override
    void spirit() {
        greatWall.setSpirit("中华武术魂");
    }

    @Override
    GreatWall done() {
        return greatWall;
    }
}
